Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
duplex-combination
Advanced tools
Merge a readable and writable stream together into a duplex stream
var dp = new DuplexCombination(reader, writer, options);
dp.write("data");
dp.on('readable', function() {
dp.read(n);
})
The read and write streams are exposed with the properties dp.reader
and dp.writer
Error events include the stream that triggered the error, so you can:
dp.on('error',function(err,stream) {
if (stream === dp.reader) {
// error while reading
}
else {
// error while writing
}
});
Stolen shamelessly from Isaac Schuleter's duplex-passthrough
module.
FAQs
Combine a readable and writable stream into a duplex stream
We found that duplex-combination demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.